package com.wsl.thymeleafinaction.domain;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 18:10 2017/12/6
 * @Modified by:
 */
@XmlRootElement  //mediatype转为xml
public class User {
    private long id;//用户唯一标识
    private String name;
    private  int age;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public User() {
    }
}